Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fanout exchange #33

Merged
merged 8 commits into from
Nov 19, 2023
Merged

Fanout exchange #33

merged 8 commits into from
Nov 19, 2023

Conversation

moyiz
Copy link
Contributor

@moyiz moyiz commented Nov 8, 2023

Hi,
Great project.

In this PR I have rebased and fixed the changes that were introduced in these older ones:
#10
#23

I also changed Storage._history from {msg_id: msg} mapping to [(msg_id, msg), ...] list to better support multiple copies of messages by fanout exchanges since they have the same ID.

Thanks.

embray and others added 7 commits November 7, 2023 17:41
Previously, publishing a message to an exchange (either through the mock
client, or through a "real" client connected to the mock server) would
not result in that message being added to any queues bound to the
exchange.  Testing queues and exchanges were totally separate.  E.g. for
the same effect you would have to have a "real" client publish to an
exchange, and have the mock client publish to an associated queue.

This automatically adds any messages published to an exchange to any
queues bound to that exchange (this assumes direct routing--fanout
will be added in a follow-up).
declare_queue now actually does something, in terms of ensuring that the
queue exists

new queues are automatically bound to the default exchange
topic/header exchanges can be left as a separate exercise

depends on tsv1#8
and tsv1#9
@moyiz
Copy link
Contributor Author

moyiz commented Nov 12, 2023

Hi @tsv1,
Since d42 does not support python3.7, would you prefer me to remove d42 as dependency or abandon python3.7 ?

@tsv1
Copy link
Owner

tsv1 commented Nov 14, 2023

Hi!

Let's remove Python 3.7, as it's no longer supported by the PSF.

@codecov-commenter
Copy link

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (e16af3b) 94.61% compared to head (3ba9f32) 94.32%.

Files Patch % Lines
amqp_mock/_storage.py 92.85% 1 Missing and 1 partial ⚠️
amqp_mock/amqp_server/_amqp_connection.py 83.33% 0 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
- Coverage   94.61%   94.32%   -0.29%     
==========================================
  Files          14       14              
  Lines         594      617      +23     
  Branches       71       78       +7     
==========================================
+ Hits          562      582      +20     
- Misses         16       17       +1     
- Partials       16       18       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tsv1 tsv1 merged commit 9c0cb16 into tsv1:master Nov 19, 2023
4 checks passed
@tsv1
Copy link
Owner

tsv1 commented Nov 19, 2023

@moyiz thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants